/*    
 * Copyright (c) 2013 ISoftStone, Inc.
 * All right reserved.
 *
 * 文件名：      MailProperties.java
 * 作者:     Jacky Wang
 * 创建日期： 2013-8-9 上午11:53:38
 * 版本：           
 *
 */
package com.isoftstone.industry.aaa.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.apache.log4j.Logger;

/**
 *
 * @author jacky
 */
public class MailProperties
{
	private static Logger logger = Logger.getLogger(SystemProperties.class);
	
	private static String	mailFrom = null;
	
	static
	{
		InputStream in = SystemProperties.class.getClassLoader().getResourceAsStream("mail.properties");
		Properties props = new Properties();
		try
		{
			props.load(in);
			
			mailFrom = props.getProperty("mail.from");
		} catch (IOException e)
		{
			logger.error(e.getMessage(), e);
		}
	}

	public static String getMailFrom()
	{
		return mailFrom;
	}
}
